using FreeSql.DataAnnotations;

namespace LF.Domain.Entities
{
    /// <summary>
    /// 字典项
    /// </summary>
    [Table(Name = "SysDictItem")]
    public class DictItem : BaseEntity
    {
        /// <summary>
        /// 字典项键名
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// 字典项值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// 字典类型ID
        /// </summary>
        public Guid TypeId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int OrderNo { get; set; }

        /// <summary>
        /// 状态（0正常 1停用）
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 所属字典类型
        /// </summary>
        [Navigate(nameof(TypeId))]
        public virtual DictType Type { get; set; }
    }
} 